package edu.sctu.practice.class01.huangtianlin.text4;

/**
 * Created by Administrator on 2015/10/21.
 */
public class Number {

    int n1;
    int n2;


    Number(int n1, int n2){

        this.n1 = n1;
        this.n2 = n2;

    }

   public void addition(){

       System.out.println("和:"+n1+n2);

   }


    public void subtration(){

        System.out.println("差:"+(n1-n2));


    }



    public void multiplication(){

        System.out.println("积:"+n1*n2);


    }



    public void division(){

        System.out.println("商:"+n1/n2);


    }


}
